

// let arr = []; //new Array
//    console.log(arr.__proto__.__proto__ == Object.prototype);
//    console.log(Object.prototype.__proto__);
//    console.log('-----------------------\n')

let a = { name: "a" };
let c = { name: "c" };
let b = {
  name: "b",
  show() {
    console.log(this.name);
  },
  view() {
    console.log("view method");
  }
};
Object.setPrototypeOf(a, b);
Object.setPrototypeOf(c, b);
a.show();
c.show();
a.view();
c.view();